package com.example.demo.controller;

import com.example.demo.config.ThreadTest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class ThreadController {
    @GetMapping("/getName")
    public String getName(){
        return ThreadTest.getName();
    }
    public static void main(String[] args) {

        ThreadTest.getName();
    }
}
